home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / planetkit / amigakit / wbplgv10.lha / webplug / install / English < prev    next >
Text File  |  1996-08-14  |  2KB  |  96 lines

  1. ;Install script for WebPlug v1.0
  2. ;© 1996 Esteve Boix
  3. ;
  4. ;Ask for everything needed
  5. ;
  6. (set #directory
  7.     (askdir
  8.         (prompt "Where do you want to install WebPlug ?\n(a drawer 'WebPlug' WILL be created)")
  9.         (help @askdir-help)
  10.         (default "Sys:")
  11.     )
  12. )
  13. (set #adddocs
  14.     (askbool
  15.         (prompt "\n\nShould I copy the (HTML) documentation ?")
  16.         (help @askbool-help)
  17.     )
  18. )
  19. (set #locales
  20.     (askoptions
  21.         (prompt "Which catalogs do you want to install ?\n(english is built-in)")
  22.         (help @askoptions-help)
  23.         (choices "Spanish" "Catalan")
  24.         (default %00)
  25.     )
  26. )
  27. (set #fullinstdir (tackon #directory "WebPlug"))
  28. (set @default-dest #fullinstdir)
  29. (makedir
  30.     (#fullinstdir)
  31.     (prompt "Going to create WebPlug's dir")
  32.     (help @makedir-help)
  33.     (infos)
  34. )
  35. (copyfiles
  36.     (source '//WebPlug.info' )
  37.     (dest (tackon #fullinstdir '/'))
  38.     (infos)
  39.     (help @copyfiles-help)
  40. )
  41. (copyfiles
  42.     (source "/bin/BrowserLinks")
  43.     (dest (tackon #fullinstdir "BrowserLinks"))
  44.     (prompt "Going to copy the BrowserLinks dir")
  45.     (all)
  46.     (help @copyfiles-help)
  47. )
  48. (if (= 1 #adddocs)
  49.     (copyfiles
  50.         (source "/docs")
  51.         (dest (tackon #fullinstdir "Docs"))
  52.         (prompt "Going to copy the (HTML) documentation")
  53.         (help @copyfiles-help)
  54.         (all)    
  55.     )
  56. )
  57. (set tempversion (getversion))
  58. (set osversion (/ tempversion 65536))
  59. (if (>= osversion 39)
  60.     (copylib
  61.         (source "/bin/classes/gadgets/textfield.gadget")
  62.         (dest "sys:classes/gadgets")
  63.         (prompt "About to install the Textfield.gadget (OS v3.0+)")
  64.     )
  65.     (copylib
  66.         (source "/bin/classes/gadgets/textfield.gadget")
  67.         (dest (tackon #fullinstdir "gadgets"))
  68.         (prompt "About to install the Textfield.gadget (OS v2.0+)")
  69.     )
  70. )
  71. (copyfiles
  72.     (source "/bin/WebPlug")
  73.     (dest #fullinstdir)
  74.     (prompt "Going to copy WebPlug's executable")
  75.     (help @copyfiles-help)
  76.     (infos)
  77. )
  78. (if (in #locales 0)
  79.     (copyfiles
  80.         (source "/bin/locale/catalogs/español")
  81.         (dest "locale:catalogs/español")
  82.         (prompt "Installing spanish catalogs")
  83.         (all)
  84.         (help @copyfiles-help)
  85.     )
  86. )
  87. (if (in #locales 1)
  88.     (copyfiles
  89.         (source "/bin/locale/catalogs/català")
  90.         (dest "locale:catalogs/català")
  91.         (prompt "Installing catalan catalogs")
  92.         (all)
  93.         (help @copyfiles-help)
  94.     )
  95. )
  96.